import request from "@/utils/request";

export function login(data) {
  return request({
    url: "/users/login",
    method: "post",
    data
  });
}


export function changePassword(data) {
  return request({
    url: "/users/changePassword",
    method: "post",
    data
  });
}

export function getUserInfo() {
  return request({
    url: "/users/getUserInfo",
    method: "post"
  });
}

export function logout() {
  return request({
    url: "/user/logout",
    method: "post"
  });
}
